﻿/****************************************
 * 类名：ExTable
 * 用途：数据表字典的维护
 * 创建人：曹荣芝
 * 创建时间：2013-01-17 08:48:00
 * 
 * 
 * 
 * 
 * 
 **************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace XWG.JWBST.JWBSTSPConst
{
    /// <summary>
    ///  表名
    /// </summary>
    public class ExTable
    { 
        private static ExTable oExTable;
        private static Dictionary<string, string> dicError = new Dictionary<string, string>();
        /// <summary>
        /// 获取消息码对应的消息
        /// </summary>
        /// <param name="key">消息码</param>
        /// <returns>返回消息码对应的消息</returns>
        public static string GetTableDesc(string key)
        {
            
            string strTemp = string.Empty;
            if (oExTable == null)
            {
                oExTable = new ExTable();
            }
            try
            {
                strTemp = dicError[key];
            }
            catch
            {
                strTemp = key.ToString();
            }


            if (strTemp == string.Empty || strTemp == null || strTemp.Trim().Length == 0)
            {
                return key.ToString();
            }
            else
            {
                return strTemp;
            }
        }
        private ExTable()
        {
            dicError.Add("APP_LOG", "日志表");
            
        }
    }
}
